package com.rzx.mybackend.mapper;

import com.rzx.mybackend.entity.GameComment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * CommentMapper.xml
 *
 * @author renzhexian
 * @date 2025/7/22
 */
@Mapper
public interface CommentMapper {

    /*
    用户发布评论
     */
    public void putComment(GameComment gameComment);

    /*
    根据游戏ID获取游戏评论
     */
    List<GameComment> getCommentsByGameId(Long gameId);

}
